<template>
    <div class="header">
        <div class="header-left">
            <span class="iconfont">&#xe624;</span>
        </div>
        <div class="header-input">
            <span class="iconfont">&#xe632;</span>
            输入城市/景点/游玩主体
        </div>
        <router-link to="/city">
            <div class="header-right iconfont">
                <span class="iconfont">&#xe6aa;</span>
                {{this.city}}
            </div>
        </router-link>
    </div>
</template>
<script>
export default {
    name:'HomeHeader',
    computed:{
        city(){
            return this.$store.state.city;
        }
    }
}
</script>
<style lang="scss" scoped>
@import '~@/assets/styles/varibles.scss';
.header{
    display: flex;
    height: .86rem;
    background-color: $themeBgColor;
    color:#fff;
    line-height: .86rem;
}
.header-left{
    width:.64rem;
    float: left;
    margin-left: .2rem;
}
.header-input{
    flex:1;
    height: .64rem;
    margin-top:.12rem;
    margin-left: .2rem;
    background-color: #fff;
    border-radius: .1rem;
    color:#ccc;
    line-height: .64rem;
    padding-left: .1rem;
    font-size: .30rem;
}
.header-right{
    min-width:1.04rem;
    padding:0 .1rem 0 .1rem;
    float:right;
    text-align: center;
    color:#fff;
}
</style>